<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-html</title>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<div id="app">
    <p v-text="message+'!'">我是一个杀手</p>
    <p v-html="content"></p>
    <p>{{free.content}}</p>

</div>

<script>
    var app = new Vue({
        el:"#app",
        data: {
            message:"JohnWick",
            content:"<a href='http://www.itheima.com'>黑马程序员</a>",

            free: {
                content:"<a href='http://www.itheima.com'>黑马程序员</a>"
            }
        },

    })
</script>
</body>
</html>
